package de.koller.faculae.input;

import de.koller.aframe.plain.InputPlain;
import de.koller.faculae.FNode;
import java.awt.event.KeyEvent;

public class FInput extends FNode {
	
	private InputPlain input;

	@Override
	protected void init() {
		super.init();
		
		input = new InputPlain( froot.display );
		this.addChild( input );
	}

	@Override
	protected void update( int elapsedTime ) {
		super.update( elapsedTime );
		
		if( input.isKeyPressed( KeyEvent.VK_F12 ) )
			froot.stop();
	}
	
}
